﻿using System;
using System.Text;

class StringOf20Chars
{
    static void Main()
    {
        Console.WriteLine("Enter a string with max length = 20:");
        string inputString = Console.ReadLine();
        if (inputString.Length == 20)
        {
            Console.WriteLine(inputString);
        }
        else if (inputString.Length > 20)
        {
            string cutString = inputString.Substring(0, 20);
            Console.WriteLine(cutString);
        }
        else
        {
            string addString = inputString.PadRight(20, '*');
            Console.WriteLine(addString);
        }
    }
}

